 {% extends 'Reservation/base.html' %}
    {% block body_block %}
<div class="row clearfix">
		<div class="col-md-12 column">
              <h3>
				 List Of Offers
			</h3>
			<div class="row">
				  {% if offers %}
                     {% for offer in offers %}
				<div class="col-md-4">
					<div class="thumbnail">
						<img alt="300x200" src="{{ offer.room.hotel.HotelImage.url }}" />
						<div class="caption">
							<h3>
							    {{ offer.room.hotel.Name }}
							</h3>
                            <p>
                                Room Type:{{ offer.room.type}}
							</p>
                            <p>
                                Offer Start Date:{{ offer.offer.offer_start}}
							</p>
                            <p>
                                Offer End Date:{{ offer.offer.offer_end}}
							</p>
							<p>
                                before Offer:{{ offer.room.price }}
							</p>
                            <p>
                                After Offer:{{ offer.offer.offer_discount }}
							</p>
							<p>
								<a class="btn btn-primary" href="/Reservation/offer/{{offer.offer.id}}/ ">Details</a>
							</p>
						</div>
					</div>
				</div>
                     {% endfor %}
                {% endif %}
			</div>
		</div>
	</div>
     {% endblock %}